#include "StdAfx.h"
#include "sun.h"
GLfloat	 lightPos2[] = { 0.0f, 0.0f, 0.0f, 1.0f };

sun::sun(void) : planet()
{
}

sun::~sun(void)
{
}
void sun::prepare(void)
{
	setRGB(255, 255, 0);
	setSolidSphere(10.0f, 15, 15);
}

 void sun::show(void)
{
	glColor3ub(this->R, this->G, this->B);
	glDisable(GL_LIGHTING);
	glutSolidSphere(this->radius, this->slices, this->stacks);
	glEnable(GL_LIGHTING);
	glLightfv(GL_LIGHT0, GL_POSITION, lightPos2);
}
